@extends("base")
@section("content")
    <div class="fix_header"></div>
    <div class="banner_1">
        <img src="{{asset('img/ny_banner1.jpg')}}">
    </div>
    <div class="container">
        <section class="page">
            <div class="leftbox">
                <h1 class="cattitle">快房</h1>
                <ul class="submenu">
                    @foreach($nav_list[$fatherId]['data'] as $nav)
                        <li>
                            <a href="{{url('/house/index/'.$nav['categoryid'])}}"
                               @if($nav['categoryid'] == $id) class="on" @endif>{{$nav['name']}}
                            </a>
                        </li>
                    @endforeach
                </ul>
                <div class="telep"><img src="{{asset('img/phone.jpg')}}"/></div>
            </div>
            <div class="mainbox">
                <div class="pagecont">
                    <div class="title" style="padding: 0 30px!important;">
                        <h1 class="cattitle">快房</h1>
                        <span style="line-height: 50px!important;">当前位置：首页>快房</span>
                        <div class="clear"></div>
                    </div>
                </div>
                <div class="mainbox">
                    <ul class="lease-box">
                        @foreach($lists as $item)
                            <?php $img = explode(',',$item->imgurl)[0] ?>
                            <li>
                                <a href="{{url('house/detail/'.$item->jobid)}}">
                                    <img class="am_img animated" src="{{asset($img)}}"  onerror="this.src='{{asset('img/product3.jpg')}}'"/>
                                </a>
                            </li>
                        @endforeach
                    </ul>
                    <div class="pagelist">
                        {!! $lists->render() !!}
                    </div>
                </div>
            </div>
            <div class="clear"></div>
        </section>
    </div>
@stop